package org.emergency.framework.otherDatasourse;

import java.util.List;

import javax.annotation.Resource;

import org.emergency.framework.common.Context;
import org.emergency.framework.dao.HibernateBaseDao;
import org.springframework.orm.hibernate3.HibernateTemplate;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
import org.springframework.stereotype.Repository;

/**
 * 这里的bean配置在applicationContext-otherDatasourse.xml中
 * @author game
 *
 */
public class TbSysConfigDAOImpl implements ITbSysConfigDAO{

	private HibernateTemplate hibernateTemplate1;

	public HibernateTemplate getHibernateTemplate1() {
		return hibernateTemplate1;
	}


	public void setHibernateTemplate1(HibernateTemplate hibernateTemplate1) {
		this.hibernateTemplate1 = hibernateTemplate1;
	}


	public List<TbSysConfig> findAll() {
		System.out.println("**");
		List list = getHibernateTemplate1().find("from TbSysConfig");
		return list;
	}
	
	

}
